package com.wulian.user.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *@Description:()
 * @author  caifulin
 * @date  2020/10/27 15:49
 * @version 1.0
 */
@Data
@ApiModel("岗位用户关系表")
@TableName("post_user")
public class PostUser extends Model<PostUser> {

    @ApiModelProperty("id")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("user_id")
    private Integer userId;

    @ApiModelProperty("post_id")
    private Integer postId;

    @ApiModelProperty("company_id")
    private Integer companyId;

    @ApiModelProperty("create_id")
    private Integer createId;

    @ApiModelProperty("update_id")
    private Integer updateId;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("0-正常，1-删除")
    private Integer delFlag;

    @Override
    protected Serializable pkVal() {
        return null;
    }

    public PostUser() {
    }
}